package com.qyl.honghengshop.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.qyl.honghengshop.dto.Order;
import com.qyl.honghengshop.utils.PageBean;

public interface OrderMapper {

	int getRecordCount(Order order);

	List<Order> orderList(@Param("pageBean")PageBean pageBean,@Param("order")Order order);

	int saveOrder(Order order);
	
	Order getOrderById(Integer id);

	Order getOrderByIdAndTradingStatus(@Param("id")Integer id,@Param("trading_status")Integer trading_status);
	
	//把外键置为空
	void setUserIdtoNull(Integer id);

}
